package com.fw.service;

import java.util.List;

import com.fw.model.Permission;
import com.fw.model.Role;
import com.fw.util.RolePermissonsZtree;

public interface RoleService {
	public boolean add_roleService(Role role);
	public Integer query_totalRoleService(String sql);
	public List<Role> query_allRoleByPageService(String sql, int firstPage,int maxPage);
	public boolean delete_roleByIdService(Role role);
	public boolean update_roleByIdService(Role role);
	public Role query_roleByIdService(Role role);
	public List<Role> query_allRoleService();
	public List<RolePermissonsZtree> query_rolePermissonsZtreeDataService(Role role);
	public boolean update_rolePermissionService(Role role,List<Permission> permissions);
	public List<Permission> query_permissionByRoleService(Role role);
}
